class Solution {
public:
    int finalValueAfterOperations(vector<string>& operations) {
        int x=0;
        for(string str:operations)
        {
            if(str[0]=='+'||str[2]=='+') x++;
            else x--;
        }
        return x;
    }
};